<!--
 * @FilePath     : /study_code/css/unset.html
 * @Description  : unset 关键词用于： 非继承性 CSS 属性 display
 * @Date         : 2025-04-28 14:47:07
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-28 14:47:07
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="" />
    <style>
      div {
        width: 200px;
        height: 100px;
        margin: 30px;
        padding: 10px;
        border: 1px solid red;
        display: flex;
        justify-content: center;
        align-items: center;
      }

      .box2 {
        display: unset;
      }

      /*
      结果：
      */
    </style>
  </head>
  <body>
    <div class="box1">box1</div>
    <div class="box2">box2</div>
  </body>
</html>
